<template>
  <button class="back-button" @click="goBack">
    <!-- 使用字符实体代码或者 FontAwesome 图标等来表示图标 -->
    <img src="../assets/back.png" class="back" />
    <!-- 向左的箭头图标 -->
  </button>
</template>

<script setup>
import { useRouter } from 'vue-router';

const router = useRouter();

const goBack = () => {
  
  router.back();
};



</script>

<style>
.back-button {
  position: fixed;
  left: 3px;
  background-color: transparent;
  border: none;
  cursor: pointer;
  z-index: 1000;
}
.back {
  width: 20px;
  height: 20px;
}
</style>
